<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	xMode = Request("xMode")
	showSubMenu = "70"
	
	'## 개인 정보
	Set memRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT userNm, uPhone, uEmail, passwd, apprPass, uPart, uDuty FROM tblUser WHERE userId='" & Request.Cookies("S_uid") & "'"	
	memRs.open SQL, dbCon
	
	If memRs.eof Or memRs.bof Then 
	Else 
		Do Until memRs.eof Or memRs.bof
			userId = Request.Cookies("S_uid")
			userNm = memRs("userNm")
			uPhone = memRs("uPhone")
			uEmail = memRs("uEmail")
			passwd = memRs("passwd")
			uDuty = memRs("uDuty")
			uPart = memRs("uPart")
			apprPass = memRs("apprPass")
			uPart = memRs("uPart")
		memRs.movenext
		Loop 
	End If
	
	'## 부서 정보
	Set partRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT itemCd, itemNm FROM tblComCode WHERE flag='Y' AND groupCd='0005' ORDER BY itemSeq"	
	partRs.open SQL, dbCon
	
	If partRs.eof Or partRs.bof Then 
	Else 
		Do Until partRs.eof Or partRs.bof
			chk = ""
			if partRs("itemCd") = uPart then chk = "SELECTED" end if 
			options = options & "<option value='" & partRs("itemCd") & "' " & chk & ">" & partRs("itemNm") & "</option>"
		partRs.movenext
		Loop 
	End If
	
	'## 직급 정보
	Set dutyRs=Server.CreateObject("ADODB.RecordSet")
	SQL = "SELECT itemCd, itemNm FROM tblComCode WHERE flag='Y' AND groupCd='0007' ORDER BY itemSeq"	
	dutyRs.open SQL, dbCon
	
	If dutyRs.eof Or dutyRs.bof Then 
	Else 
		Do Until dutyRs.eof Or dutyRs.bof
			chk = ""
			if dutyRs("itemCd") = uDuty then chk = "SELECTED" end if 
			dutyOptions = dutyOptions & "<option value='" & dutyRs("itemCd") & "' " & chk & ">" & dutyRs("itemNm") & "</option>"
		dutyRs.movenext
		Loop 
	End If
		
%>
<!-- #include virtual=/inc/header.inc.asp -->  

<BODY topmargin="0" leftmargin="0">
<table border="0" cellpadding="0" cellspacing="0" width="510" style="margin-bottom:5px">
	<tr height="40">
		<td style="padding: 0px 0 0px 10px;background-image:url(/inc/layout/panel-title-light-bg.gif);font-weight:bold;text-align:left" width="100%" class="lTD_trbl">개인정보수정
		</td>
	</tr>
</table>
<!-- 그리드 시작 -->
<div style="text-align:left">
<table border="0" cellpadding="0" cellspacing="0" width="510" style="margin:0 5px 0 5px;text-align:left">
	<tr>
		<td valign="top" style="text-align:center;">					
			<table border="0" cellpadding="0" cellspacing="0" width="500">
				<tr>
				  <td width="100%" class="lTD_trbl" style="padding: 5px 5px 5px 5px; text-align:center">
					<table border="0" cellpadding="0" cellspacing="0" width="490">
						 <input type="hidden" name="userID" id="userId" value="<%=userId%>"> 
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								이 &nbsp; &nbsp; &nbsp; &nbsp;름 &nbsp; : &nbsp;<input type="text" name="userNm" id="userNm" size="15" class="specialBox" value="<%=userNm%>" style="margin-left:4px"> &nbsp; &nbsp; &nbsp;
								비밀번호 &nbsp; : &nbsp;<input type="<%=adminPass%>" name="passwd" id="passwd" size="15" class="specialBox" value="<%=passwd%>">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								직 &nbsp; &nbsp; &nbsp; &nbsp;급 &nbsp; : &nbsp;
								<select name="uDuty" id="uDuty" style="margin-right:58px" readOnly>
									<option value="">-직급-</option>
									<%=dutyOptions%>
								</select> 
								전자결재 비밀번호 &nbsp; : &nbsp;<input type="<%=adminPass%>" name="apprPass" id="apprPass" size="15" class="specialBox" value="<%=apprPass%>">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								부 &nbsp; &nbsp; &nbsp; &nbsp;서 &nbsp; : &nbsp;
								<select name="uPart" id="uPart" style="margin-right:58px" readOnly>
									<option value="">-부서-</option>
									<%=options%>
								</select> 
								연 락 처 &nbsp; &nbsp;: &nbsp;<input type="text" name="uPhone" id="uPhone" size="20" class="inputBox" value="<%=uPhone%>">
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 0 0 20px; text-align:left; font-weight:bold">
								&nbsp;&nbsp;E-mail&nbsp;&nbsp; &nbsp; : &nbsp;<input type="text" name="uEmail" id="uEmail" size="40" class="inputBox" style="margin-left:5px" value="<%=uEmail%>"> &nbsp; &nbsp;
							</td>
						</tr>
						<tr>
							<td height="30" width="490" class="lTD_00b0" style="padding: 0 10px 0 0; text-align:right; font-weight:bold">
								<input type="button" value="저장" class="inputBtn" onClick="fnSave()"> 
								<input type="button" value="닫기" class="inputBtn" onClick="self.close()">
							</td>
						</tr>
					</table>
				  </td>
				</tr>
			</table>
		</td>		
		<td width="265">
			<table border="0" cellpadding="0" cellspacing="0" width="147">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<!-- 그리그 끝 -->
<div id="layerAuth" style="position:absolute;width:500px;height:200px;border:#999 1px solid;background-color:#3366CC;filter:alpha(opacity=90); opacity:.4;z-index:5;left:5px;top:5px;text-align:center;display:;">
	<table border="0" cellpadding="0" cellspacing="0" width="300" style="margin-top:50px;background-color:#FFF;">
		<tr>
			<td style="height:27px;text-align:center;font-weight:bold;font-size:13px;">- 비 밀 번 호 -</td>
		</tr> 
		<tr>
			<td style="height:30px;text-align:center;"><input type="password" id="chkPasswd" style="width:150px;height:25px;border:#3366CC 1px solid;"></td>
		</tr>
		<tr>
			<td style="height:30px;text-align:center;font-weight:bold">
				<input type="button" value="확인" class="inputBtn" onClick="fnCheckPass()"> 
				<input type="button" value="닫기" class="inputBtn" onClick="self.close()">
			</td>
		</tr>
	</table>
</div>
<script language="javascript">
	fnCommonInit();
</script>
</BODY>
</HTML>